{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 4,
   "metadata": {},
   "outputs": [],
   "source": [
    "import requests"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 10,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": [
    "from bs4 import BeautifulSoup"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 16,
   "metadata": {},
   "outputs": [],
   "source": [
    "url='https://service.chinaums.com/uis/uisWebLogin/desktop?Mon%20Dec%2018%202017%2020:45:18%20GMT+0800'"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "商户搜索页面url\n",
    "\n",
    "https://service.chinaums.com/uis/uisWebLogin/desktop?Mon%20Dec%2018%202017%2020:45:18%20GMT+0800"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 17,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": [
    "def get_html(url):\n",
    "    try:\n",
    "        r=requests.get(url,timeout=16)\n",
    "        status=r.status_code\n",
    "        r.raise_for_status()\n",
    "        r.encoding=r.apparent_encoding\n",
    "        return r.text\n",
    "    except:\n",
    "        now_time=time.strftime('%Y%m%d%H%M%S')\n",
    "        logging.info(now_time +'   ' +'get_html 异常'+'   '+ url)   "
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 18,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": [
    "html =get_html(url)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 19,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "<!DOCTYPE html>\n",
      "<!-- 是否忽略特殊标签:否 -->\n",
      "<!-- HTTP 1.1 -->\n",
      "<meta content=\"no-store\" http-equiv=\"Cache-Control\"/>\n",
      "<!-- 忽略缓存 -->\n",
      "<meta content=\"no-cache\" http-equiv=\"Pragma\"/>\n",
      "<!-- Prevents caching at the Proxy Server -->\n",
      "<meta content=\"0\" http-equiv=\"Expires\"/>\n",
      "<meta content=\"text/html; charset=utf-8\" http-equiv=\"Content-Type\"/>\n",
      "<!-- 加载C标签 -->\n",
      "<!-- 项目路径ctx -->\n",
      "<script>\n",
      " var ctx = \"/uis\";\r\n",
      "\tvar language = \"zh_CN\";\r\n",
      "\tvar titleMsg = \"温馨提示\";\r\n",
      "\tvar contentMsg = \"温馨提示\";\r\n",
      "\tvar verificationCodeMsg = \"请输入验证码\";\r\n",
      "\tvar c_CheckedNodeMsg = \"请先选择一个节点\";\r\n",
      "\tvar reminderMsg = \"温馨提示\";\r\n",
      "\tvar c_CloseMsg = \"取 消\";\r\n",
      "\tvar c_EnsureMsg = \"确 定\";\r\n",
      "\tvar c_SureDeleteMsg = \"确定要删除吗\";\r\n",
      "\tvar c_RemarkLengthMsg = \"描述请控制在200个字符以内\";\r\n",
      "\tvar c_InputSeqMsg = \"请输入排序号\";\n",
      "</script>\n",
      "<!-- 基本的CSS和JS -->\n",
      "<link href=\"/uis/css/base.css?version=v1_15\" rel=\"stylesheet\" type=\"text/css\"/>\n",
      "<link href=\"/uis/css/funds/new.css\" rel=\"stylesheet\" type=\"text/css\"/>\n",
      "<link href=\"/uis/css/funds/liushui.css\" rel=\"stylesheet\" type=\"text/css\"/>\n",
      "<script src=\"/uis/js/jquery-1.7.1.min.js\" type=\"text/javascript\">\n",
      "</script>\n",
      "<script src=\"/uis/js/base.js?version=v1_6\" type=\"text/javascript\">\n",
      "</script>\n",
      "<script src=\"/uis/js/style.js?version=v1_1\" type=\"text/javascript\">\n",
      "</script>\n",
      "<script src=\"/uis/js/My97DatePicker/WdatePicker.js\" type=\"text/javascript\">\n",
      "</script>\n",
      "<!-- //Google Analytics  -->\n",
      "<script>\n",
      " (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){\r\n",
      "  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),\r\n",
      "  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)\r\n",
      "  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');\r\n",
      "\r\n",
      "  ga('create', 'UA-35787622-1', 'chinaums.com');\r\n",
      "  ga('send', 'pageview');\n",
      "</script>\n",
      "<!-- // Baidu Analytics  -->\n",
      "<script>\n",
      " var _hmt = _hmt || [];\r\n",
      "(function() {\r\n",
      "  var hm = document.createElement(\"script\");\r\n",
      "  hm.src = \"//hm.baidu.com/hm.js?1c0d3d1413bff5b48a4a97f64a35f6a4\";\r\n",
      "  var s = document.getElementsByTagName(\"script\")[0]; \r\n",
      "  s.parentNode.insertBefore(hm, s);\r\n",
      "})();\n",
      "</script>\n",
      "<html xmlns=\"http://www.w3.org/1999/xhtml\">\n",
      " <head>\n",
      "  <meta content=\"text/html; charset=utf-8\" http-equiv=\"Content-Type\"/>\n",
      "  <meta content=\"IE=edge\" http-equiv=\"X-UA-Compatible\"/>\n",
      "  <link href=\"/uis/css/img/favicon.ico\" rel=\"shortcut icon\"/>\n",
      "  <script src=\"/uis/js/login_V1.1.js\" type=\"text/javascript\">\n",
      "  </script>\n",
      "  <link href=\"/uis/css/login_V1.1.css\" rel=\"stylesheet\" type=\"text/css\"/>\n",
      "  <script src=\"/uis/js/main.js\" type=\"text/javascript\">\n",
      "  </script>\n",
      "  <script src=\"/uis/js/browser.js\" type=\"text/javascript\">\n",
      "  </script>\n",
      "  <script src=\"/uis/js/jquery.cookie.js\" type=\"text/javascript\">\n",
      "  </script>\n",
      "  <script src=\"//static.geetest.com/static/tools/gt.js\" type=\"text/javascript\">\n",
      "  </script>\n",
      "  <link href=\"/uis/js/slides/slides.css\" rel=\"stylesheet\" type=\"text/css\"/>\n",
      "  <title>\n",
      "   银联商务有限公司-网上服务系统\n",
      "  </title>\n",
      "  <style>\n",
      "   #languageDiv a {\r\n",
      "\t\t\t\tdisplay: none;\r\n",
      "\t\t\t}\n",
      "  </style>\n",
      "  <script>\n",
      "   var initVal = \"用户名/手机/邮箱\";\r\n",
      "\t\t\tvar veVal = \"验证码\";\r\n",
      "\t\t\tvar languageDivMS;\r\n",
      "\t\t\t$(function() {\r\n",
      "\t\t    \tif (self != top){\r\n",
      "\t\t    \t\ttop.location.replace(window.location.href);\r\n",
      "\t\t   \t\t}\r\n",
      "\t\t\t\t$(\"#submitFlag\").val('true');\r\n",
      "\t\t\t\t$(\"#userAcntn\").val(initVal);\r\n",
      "\t\t\t\t$(\"#userAcntn\").css(\"color\", \"#A7A7A7\");\r\n",
      "\t\t\t\t$(\"#userAcntn\").focus(function() {\r\n",
      "\t\t\t\t\tvar theVal = this.value;\r\n",
      "\t\t\t\t\tif($.trim(theVal) == initVal) {\r\n",
      "\t\t\t\t\t\tthis.value = \"\";\r\n",
      "\t\t\t\t\t\t$(\"#userAcntn\").css(\"color\", \"\");\r\n",
      "\t\t\t\t\t}\r\n",
      "\t\t\t\t});\r\n",
      "\t\t\t\t$(\"#userAcntn\").blur(function() {\r\n",
      "\t\t\t\t\tvar value = this.value;\r\n",
      "\t\t\t\t\tif($.trim(value) == \"\") {\r\n",
      "\t\t\t\t\t\tthis.value = initVal;\r\n",
      "\t\t\t\t\t\t$(\"#userAcntn\").css(\"color\", \"#A7A7A7\");\r\n",
      "\t\t\t\t\t}\r\n",
      "\t\t\t\t});\r\n",
      "\t\t\t\t//             $(\"#validateCode2\").css(\"color\", \"#A7A7A7\");\r\n",
      "\t\t\t\t//             veVal = \"验证码\";\r\n",
      "\t\t\t\t//             $(\"#validateCode2\").val(veVal);\r\n",
      "\t\t\t\t//             $(\"#validateCode2\").focus(function() {\r\n",
      "\t\t\t\t//                 var value = this.value;\r\n",
      "\t\t\t\t//                 if ($.trim(value) == veVal) {\r\n",
      "\t\t\t\t//                     this.value = \"\";\r\n",
      "\t\t\t\t//                     $(\"#validateCode2\").css(\"color\", \"\");\r\n",
      "\t\t\t\t//                 }\r\n",
      "\t\t\t\t//             });\r\n",
      "\t\t\t\t//             $(\"#validateCode2\").blur(function() {\r\n",
      "\t\t\t\t//                 var value = this.value;\r\n",
      "\t\t\t\t//                 if (doTrim(value) == \"\") {\r\n",
      "\t\t\t\t//                     this.value = veVal;\r\n",
      "\t\t\t\t//                     $(\"#validateCode2\").css(\"color\", \"#A7A7A7\");\r\n",
      "\t\t\t\t//                 }\r\n",
      "\t\t\t\t//             });\r\n",
      "\t\t\t\t\r\n",
      "\t\t\t\tvar rightVal = $(\".poaDivContent\").offset().left;\r\n",
      "\t\t\t\t$(\".loginMask\").css(\"left\", rightVal + 653 + \"px\");\r\n",
      "\t\t\t\t$(\".loginMask\").show();\r\n",
      "\t\t\t\t$(\".loginKuang\").css(\"left\", rightVal + 713 + \"px\");\r\n",
      "\t\t\t\t$(\".loginKuang\").show();\r\n",
      "\t\t\t\t$(\".2wm\").css(\"left\", rightVal + 653 + \"px\");\r\n",
      "\t\t\t\t$(\".2wmImg\").css(\"left\", rightVal + 653 + \"px\");\r\n",
      "\t\t\t\t$(\".2wmImg\").show();\r\n",
      "\t\t\t\t$(window).resize(function() {\r\n",
      "\t\t\t\t\trightVal = $(\".poaDivContent\").offset().left;\r\n",
      "\t\t\t\t\t$(\".loginMask\").css(\"left\", rightVal + 653 + \"px\");\r\n",
      "\t\t\t\t\t$(\".loginMask\").show();\r\n",
      "\t\t\t\t\t$(\".loginKuang\").css(\"left\", rightVal + 713 + \"px\");\r\n",
      "\t\t\t\t\t$(\".loginKuang\").show();\r\n",
      "\t\t\t\t\t$(\".2wm\").css(\"left\", rightVal + 653 + \"px\");\r\n",
      "\t\t\t\t\t$(\".2wmImg\").css(\"left\", rightVal + 653 + \"px\");\r\n",
      "\t\t\t\t\t$(\".2wmImg\").show();\r\n",
      "\t\t\t\t\tvar lv = $(\"#mdiv\").offset().left;\r\n",
      "\t\t\t\t\tvar tv = $(\"#mdiv\").offset().top;\r\n",
      "\t\t\t\t\t$(\"#xlgct\").css({\r\n",
      "\t\t\t\t\t\t\"top\": tv,\r\n",
      "\t\t\t\t\t\t\"left\": lv + 5\r\n",
      "\t\t\t\t\t});\r\n",
      "\t\t\t\t\t$(\"#xlgct\").show();\r\n",
      "\t\t\t\t});\r\n",
      "\t\t\t\t$(\"#selectLanguage\").mouseover(function() {\r\n",
      "\t\t\t\t\t$(\"#languageDiv\").css({\r\n",
      "\t\t\t\t\t\t\"top\": $(this).offset().top + 25,\r\n",
      "\t\t\t\t\t\t\"left\": $(this).offset().left + 5\r\n",
      "\t\t\t\t\t}).show();\r\n",
      "\t\t\t\t\t$(\"#languageDiv a\").show();\r\n",
      "\t\t\t\t});\r\n",
      "\t\t\t\t$(\"#selectLanguage,#languageDiv\").mouseout(function() {\r\n",
      "\t\t\t\t\tlanguageDivMS = setTimeout(function() {\r\n",
      "\t\t\t\t\t\t$(\"#languageDiv\").hide();\r\n",
      "\t\t\t\t\t}, 1000);\r\n",
      "\t\t\t\t});\r\n",
      "\t\t\t\t$(\"#languageDiv\").mouseover(function() {\r\n",
      "\t\t\t\t\tclearInterval(languageDivMS);\r\n",
      "\t\t\t\t\tlanguageDivMS = undefined;\r\n",
      "\t\t\t\t});\r\n",
      "\t\t\t\t\r\n",
      "\t\t\t\t$(document).keydown(function(event) {\r\n",
      "\t\t\t\t\tif(event.keyCode == 13 && $(\"#lgmk2\").css(\"display\") != \"none\") {\r\n",
      "\t\t\t\t\t\t$(\"#lgbtn\").click();\r\n",
      "\t\t\t\t\t}\r\n",
      "\t\t\t\t});\r\n",
      "\t\t\t\t\r\n",
      "\t\t\t\t reloadvalidateCode();\r\n",
      "\r\n",
      "\t\t\t});\r\n",
      "\t\t\t\r\n",
      "\t\t\tfunction reloadvalidateCode() {\r\n",
      "\t\t\t\t$.ajax({\r\n",
      "\t\t\t\t\turl: \"/uis/validateCodeGT?t=\" + (new Date()).getTime(),\r\n",
      "\t\t\t\t\ttype: \"get\",\r\n",
      "\t\t\t\t\tdataType: \"json\",\r\n",
      "\t\t\t\t\tsuccess: function(data) {\r\n",
      "\t\t\t\t\t\tinitGeetest({\r\n",
      "\t\t\t\t\t\t\tgt: data.gt,\r\n",
      "\t\t\t\t\t\t\tchallenge: data.challenge,\r\n",
      "\t\t\t\t\t\t\tproduct: \"popup\",\r\n",
      "\t\t\t\t\t\t\toffline: !data.success\r\n",
      "\t\t\t\t\t\t},function(captchaObj){\r\n",
      "\t\t\t\t\t\t\t\r\n",
      "\t\t\t\t\t\t\tcaptchaObj.onSuccess(function() {\r\n",
      "\t\t\t\t\t\t\t\tvar validate = captchaObj.getValidate();\r\n",
      "\t\t\t\t\t\t\t\t$(\"input[name='geetest_challenge']\").val(validate.geetest_challenge);\r\n",
      "\t\t\t\t\t\t\t\t$(\"input[name='geetest_validate']\").val(validate.geetest_validate);\r\n",
      "\t\t\t\t\t\t\t\t$(\"input[name='geetest_seccode']\").val(validate.geetest_seccode);\r\n",
      "\t\t\t\t\t\t\t\t\r\n",
      "\t\t\t\t\t\t\t\tsave();\r\n",
      "\t\t\t\t\t\t\t\tcloseLogin();\r\n",
      "\t\t\t\t\t\t\t});\r\n",
      "// \t\t\t\t\t\t\tcaptchaObj.bindOn(\"#lgbtn\");\r\n",
      "\t\t\t\t\t\t\tcaptchaObj.appendTo(\"#captchaLoginForm\");\r\n",
      "\t\t\t\t\t\t\t$(\"#lgbtn\").click(function(){\r\n",
      "\t\t\t\t\t\t\t\tif(checkLoginNameAndPwd()){\r\n",
      "\t\t\t\t\t\t\t\t\t//图形验证\r\n",
      "\t\t\t\t\t\t\t\t\tcaptchaObj.show();\r\n",
      "\t\t\t\t\t\t\t\t\t$(\"#lgError\").hide();\r\n",
      "\t\t\t\t\t\t\t\t\t$(\"#lgmk2,#lgkuang2,#lgct,#lgife,#xlgct\").hide();\r\n",
      "\t\t\t\t\t\t\t\t\t$(\"#lgife\").attr(\"src\", \"\");\r\n",
      "\t\t\t\t\t\t\t\t}\r\n",
      "\t\t\t\t\t\t\t});\r\n",
      "\t\t\t\t\t\t\t\r\n",
      "\t\t\t\t\t\t});\r\n",
      "\t\t\t\t\t}\r\n",
      "\t\t\t\t});\r\n",
      "\t\t\t\t\r\n",
      "// \t        $(\"#validateCodeImg\").attr(\"src\",\"/uis/validateCode?data=\" + new Date()+ Math.floor(Math.random() * 24));\r\n",
      "\t    \r\n",
      "\t\t\t}\r\n",
      "\t\t\tvar loginCss;\r\n",
      "\r\n",
      "\t\t\tfunction openLogin() {\r\n",
      "\t\t\t\tvar src = \"/uis/uisWebLogin/caslogin\";\r\n",
      "\t\t\t\t$(\"#lgmk2,#lgkuang2,#lgct\").show();\r\n",
      "\t\t\t\tvar lv = $(\"#mdiv\").offset().left;\r\n",
      "\t\t\t\tvar tv = $(\"#mdiv\").offset().top;\r\n",
      "\t\t\t\t$(\"#xlgct\").css({\r\n",
      "\t\t\t\t\t\"top\": tv,\r\n",
      "\t\t\t\t\t\"left\": lv + 5\r\n",
      "\t\t\t\t});\r\n",
      "\t\t\t\t$(\"#xlgct\").show();\r\n",
      "\t\t\t}\r\n",
      "\r\n",
      "\t\t\t/* function appInfo() {\r\n",
      "\t\t\t\tvar browser = {\r\n",
      "\t\t\t\t\t\tappname: 'unknown',\r\n",
      "\t\t\t\t\t\tversion: 0,\r\n",
      "\t\t\t\t\t\tKernel: 'unknown'\r\n",
      "\t\t\t\t\t},\r\n",
      "\t\t\t\t\tuserAgent = window.navigator.userAgent.toLowerCase();\r\n",
      "\t\t\t\t//IE,firefox,opera,chrome,netscape  \r\n",
      "\t\t\t\tif (/(msie|firefox|opera|chrome|netscape)\\D+(\\d[\\d.]*)/.test(userAgent)) {\r\n",
      "\t\t\t\t\tbrowser.appname = RegExp.$1;\r\n",
      "\t\t\t\t\tbrowser.version = RegExp.$2;\r\n",
      "\t\t\t\t} else if (/version\\D+(\\d[\\d.]*).*safari/.test(userAgent)) { // safari  \r\n",
      "\t\t\t\t\tbrowser.appname = 'safari';\r\n",
      "\t\t\t\t\tbrowser.version = RegExp.$2;\r\n",
      "\t\t\t\t}\r\n",
      "\t\t\t\tif (/(trident|gecko|webkit|opr)\\D/.test(userAgent)) {\r\n",
      "\t\t\t\t\tbrowser.Kernel = RegExp.$1;\r\n",
      "\t\t\t\t}\r\n",
      "\t\t\t\treturn browser;\r\n",
      "\t\t\t} */\r\n",
      "\r\n",
      "\t\t\tfunction save() {\r\n",
      "\t\t\t\t$(\"#loginButton\").focus();\r\n",
      "\t\t\t\tif(!checkLoginNameAndPwd()) {\r\n",
      "\t\t\t\t\treturn;\r\n",
      "\t\t\t\t}\r\n",
      "\t\t\t\tif($(\"#submitFlag\").val() == 'false') {\r\n",
      "\t\t\t\t\treturn;\r\n",
      "\t\t\t\t}\r\n",
      "\t\t\t\t$(\"#submitFlag\").val('false');\r\n",
      "\t\t\t\t$(\"#userAcnt\").val($(\"#userAcntn\").val());\r\n",
      "\t\t\t\t$(\"#userPwd\").val($(\"#userPwdn\").val());\r\n",
      "\t\t\t\t// \t        $(\"#validateCode\").val($(\"#validateCode2\").val());\r\n",
      "\t\t\t\t$(\"#browserName\").val($.NV('shell'));\r\n",
      "\t\t\t\t$(\"#browserKernel\").val($.NV('UA'));\r\n",
      "\t\t\t\t$(\"#browserVersion\").val(parseInt($.NV('version')));\r\n",
      "\r\n",
      "\t\t\t\t$.ajax({\r\n",
      "\t\t\t\t\ttype: \"POST\",\r\n",
      "\t\t\t\t\turl: ctx + \"/uisWebLogin/login\",\r\n",
      "\t\t\t\t\tdata: $('#form').serialize(),\r\n",
      "\t\t\t\t\tsuccess: function(data) {\r\n",
      "\t\t\t\t\t\tvar objectValue = data.respCode;\r\n",
      "\t\t\t\t\t\tvar userId = data.userId;\r\n",
      "\t\t\t\t\t\tvar flag = data.flag;\r\n",
      "\t\t\t\t\t\tvar newUserHere = data.newUserHere; //新建库是否存在该用户\r\n",
      "\t\t\t\t\t\tvar userMobile = data.userMobile; //判断电话是否存在\r\n",
      "\t\t\t\t\t\tif(newUserHere == 1) {\r\n",
      "\t\t\t\t\t\t\tif(userMobile == null) {\r\n",
      "\t\t\t\t\t\t\t\t$(\"#ax\").hide();\r\n",
      "\t\t\t\t\t\t\t\topenAlert(\"温馨提示\", \"用户手机号码不存在\", function() {\r\n",
      "\t\t\t\t\t\t\t\t\twindow.location.href = \"/uis/uisWebLogin/logout\";\r\n",
      "\t\t\t\t\t\t\t\t});\r\n",
      "\t\t\t\t\t\t\t} else {\r\n",
      "\t\t\t\t\t\t\t\ttoUrl('cellphoneVerify');\r\n",
      "\t\t\t\t\t\t\t}\r\n",
      "\t\t\t\t\t\t} else if(\"000000\" == objectValue) {\r\n",
      "\t\t\t\t\t\t\ttoUrl('desktop?' + new Date());\r\n",
      "\t\t\t\t\t\t} else if(\"020001\" == objectValue) {\r\n",
      "\t\t\t\t\t\t\t$(\"#submitFlag\").val('true');\r\n",
      "\t\t\t\t\t\t\ttoUrl('toActivationAgreement?firstLoginFlag=firstLoginFlag');\r\n",
      "\t\t\t\t\t\t} else if(\"020004\" == objectValue) {\r\n",
      "\t\t\t\t\t\t\t$(\"#submitFlag\").val('true');\r\n",
      "\t\t\t\t\t\t\topenAlert(\"温馨提示\", data.respDesc, function() {\r\n",
      "\t\t\t\t\t\t\t\ttoUrl('toActivationEnd');\r\n",
      "\t\t\t\t\t\t\t});\r\n",
      "\t\t\t\t\t\t} else if(\"020005\" == objectValue) {\r\n",
      "\t\t\t\t\t\t\ttoUrl('modifyPwd?userId=' + userId + '&flag=' + flag);\r\n",
      "\t\t\t\t\t\t} else if(\"020006\" == objectValue) {\r\n",
      "\t\t\t\t\t\t\t$(\"#ax\").hide();\r\n",
      "\t\t\t\t\t\t\topenAlert(\"温馨提示\", \"该用户已被锁定，请联系管理员\", function() {\r\n",
      "\t\t\t\t\t\t\t\ttoUrl(\"/uis/uisWebLogin/logout\");\r\n",
      "\t\t\t\t\t\t\t});\r\n",
      "\t\t\t\t\t\t} else {\r\n",
      "\t\t\t\t\t\t\t$(\"#submitFlag\").val('true');\r\n",
      "\t\t\t\t\t\t\topenAlert(\"温馨提示\", data.respDesc, function() {\r\n",
      "\t\t\t\t\t\t\t\t// \t                                reloadvalidateCode();\r\n",
      "\t\t\t\t\t\t\t\tif(!isEmpty(data.respDesc) &&\r\n",
      "\t\t\t\t\t\t\t\t\tdata.respDesc.indexOf(\"验证码\") > -1) {\r\n",
      "\t\t\t\t\t\t\t\t\t// \t                                    $(\"#validateCode2\").focus();\r\n",
      "\t\t\t\t\t\t\t\t\t// \t                                    $(\"#validateCode2\").select();\r\n",
      "\t\t\t\t\t\t\t\t}\r\n",
      "\t\t\t\t\t\t\t});\r\n",
      "\t\t\t\t\t\t}\r\n",
      "\t\t\t\t\t}\r\n",
      "\t\t\t\t});\r\n",
      "\t\t\t}\r\n",
      "\r\n",
      "\t\t\tfunction checkLoginNameAndPwd() {\r\n",
      "\t\t\t\tvar userAcntnVal = $(\"#userAcntn\").val();\r\n",
      "\t\t\t\tvar userPwdnVal = $(\"#userPwdn\").val();\r\n",
      "\t\t\t\tif(isEmpty(userAcntnVal) || userAcntnVal == \"用户名/手机/邮箱\") {\r\n",
      "\t\t\t\t\t$(\"#lgError td:eq(1)\").html(\"登录名不能为空,请输入登录名\").show();\r\n",
      "\t\t\t\t\t$(\"#lgError\").show();\r\n",
      "\t\t\t\t\t// \t            reloadvalidateCode();\r\n",
      "\t\t\t\t\treturn false;\r\n",
      "\t\t\t\t}\r\n",
      "\t\t\t\tif(isEmpty(userPwdnVal)) {\r\n",
      "\t\t\t\t\t$(\"#lgError td:eq(1)\").html(\"密码不能为空\").show();\r\n",
      "\t\t\t\t\t$(\"#lgError\").show();\r\n",
      "\t\t\t\t\t// \t            reloadvalidateCode();\r\n",
      "\t\t\t\t\treturn false;\r\n",
      "\t\t\t\t}\r\n",
      "\t\t\t\treturn true;\r\n",
      "\t\t\t}\r\n",
      "\r\n",
      "\t\t\tfunction international(args) {\r\n",
      "\t\t\t\t$.getJSON(ctx + \"/international\", {\r\n",
      "\t\t\t\t\tlocaleLanguage: args,\r\n",
      "\t\t\t\t\ttimeUpdate: encodeURI(encodeURI(new Date()))\r\n",
      "\t\t\t\t}, function(data) {\r\n",
      "\t\t\t\t\ttoUrl('login');\r\n",
      "\t\t\t\t\t/*  openAlert(\"温馨提示\", data.respDesc,function(){\r\n",
      "\t\t\t\t\t     toUrl('login');\r\n",
      "\t\t\t\t\t }); */\r\n",
      "\t\t\t\t});\r\n",
      "\t\t\t}\r\n",
      "\r\n",
      "\t\t\tfunction lc(val) {\r\n",
      "\t\t\t\tif(val == 1) {\r\n",
      "\t\t\t\t\t$(\"#show1\").hide();\r\n",
      "\t\t\t\t\t$(\"#show2\").fadeIn(500);\r\n",
      "\t\t\t\t} else {\r\n",
      "\t\t\t\t\t$(\"#show2\").hide();\r\n",
      "\t\t\t\t\t$(\"#show1\").fadeIn(500);\r\n",
      "\t\t\t\t}\r\n",
      "\t\t\t}\r\n",
      "\r\n",
      "\t\t\tfunction closeLogin() {\r\n",
      "\t\t\t\t$(\"#lgError\").hide();\r\n",
      "\t\t\t\t$(\"#userAcntn\").val(\"\");\r\n",
      "\t\t\t\t$(\"#userPwdn\").val(\"\");\r\n",
      "\t\t\t\t$(\"#lgmk2,#lgkuang2,#lgct,#lgife,#xlgct\").hide();\r\n",
      "\t\t\t\t$(\"#lgife\").attr(\"src\", \"\");\r\n",
      "\t\t\t}\n",
      "  </script>\n",
      " </head>\n",
      " <body class=\"of\">\n",
      "  <form action=\"/uis/uisWebLogin/login\" id=\"form\" method=\"post\">\n",
      "   <input id=\"submitFlag\" name=\"submitFlag\" type=\"hidden\" value=\"true\"/>\n",
      "   <input id=\"userAcnt\" name=\"userAcnt\" type=\"hidden\"/>\n",
      "   <input id=\"userPwd\" name=\"userPwd\" type=\"hidden\"/>\n",
      "   <!--     \t<input id=\"validateCode\" name=\"validateCode\" type=\"hidden\" /> -->\n",
      "   <input id=\"browserName\" name=\"browserName\" type=\"hidden\"/>\n",
      "   <input id=\"browserKernel\" name=\"browserKernel\" type=\"hidden\"/>\n",
      "   <input id=\"browserVersion\" name=\"browserVersion\" type=\"hidden\"/>\n",
      "   <input name=\"geetest_challenge\" type=\"hidden\"/>\n",
      "   <input name=\"geetest_validate\" type=\"hidden\"/>\n",
      "   <input name=\"geetest_seccode\" type=\"hidden\"/>\n",
      "   <input id=\"loginVersion\" name=\"loginVersion\" type=\"hidden\" value=\"2.0\"/>\n",
      "   <div class=\"poaDiv\">\n",
      "    <center>\n",
      "     <div class=\"poaDivContent\">\n",
      "     </div>\n",
      "    </center>\n",
      "   </div>\n",
      "   <div style=\"height: 75px;\">\n",
      "   </div>\n",
      "   <div style=\"height: 426px;\">\n",
      "    <div class=\"flexslider\" style=\"height: 426px;width: 100%;position: absolute;top: 75px;\">\n",
      "     <center>\n",
      "      <ul class=\"slides\" style=\"height: 425px;width: 1428px;\">\n",
      "       <li style=\"background:url(/uis/css/img/login/loginBg1.jpg);background-size:100% 425px;\">\n",
      "       </li>\n",
      "       <li style=\"background:url(/uis/css/img/login/loginBg2.jpg);background-size:100% 425px;\">\n",
      "       </li>\n",
      "       <li style=\"background:url(/uis/css/img/login/loginBg3.jpg);background-size:100% 425px;\">\n",
      "       </li>\n",
      "       <li style=\"background:url(/uis/css/img/login/loginBg4.jpg);background-size:100% 425px;\">\n",
      "       </li>\n",
      "      </ul>\n",
      "     </center>\n",
      "    </div>\n",
      "    <script src=\"/uis/js/slides/js/jquery.flexslider-min.js\" type=\"text/javascript\">\n",
      "    </script>\n",
      "    <script type=\"text/javascript\">\n",
      "     $(document).ready(function() {\r\n",
      "\t\t\t\t\t\t$('.flexslider').flexslider({\r\n",
      "\t\t\t\t\t\t\tdirectionNav: true,\r\n",
      "\t\t\t\t\t\t\tpauseOnAction: false\r\n",
      "\t\t\t\t\t\t});\r\n",
      "\t\t\t\t\t});\n",
      "    </script>\n",
      "   </div>\n",
      "   <div class=\"topCeng\">\n",
      "    <center>\n",
      "     <table width=\"970\">\n",
      "      <tr>\n",
      "       <td style=\"padding-left: 15px;\" width=\"500\">\n",
      "        <img src=\"/uis/css/img/logo5.jpg\" style=\"width: 165px;\"/>\n",
      "        <font class=\"titleFont\">\n",
      "         网上服务系统 2.0\n",
      "        </font>\n",
      "       </td>\n",
      "       <td class=\"topRight\" width=\"500\">\n",
      "        <a onclick=\"window.open('http://www.chinaums.com/')\">\n",
      "         官网首页\n",
      "        </a>\n",
      "        |\n",
      "        <a onclick=\"toUrl('/uis/uisWebLogin/toFAQ?tab=faq1');\">\n",
      "         帮助中心\n",
      "        </a>\n",
      "        |\n",
      "        <a onclick=\"window.open('http://www.chinaums.com/Channel/1242265')\">\n",
      "         提建议\n",
      "        </a>\n",
      "        |\n",
      "        <span id=\"selectLanguage\">\n",
      "         <font>\n",
      "          语言/language\n",
      "         </font>\n",
      "        </span>\n",
      "       </td>\n",
      "      </tr>\n",
      "     </table>\n",
      "    </center>\n",
      "   </div>\n",
      "   <div id=\"languageDiv\">\n",
      "    <center>\n",
      "     <img src=\"/uis/css/img/language_top.jpg\"/>\n",
      "    </center>\n",
      "    <a onclick=\"international('zh_CN');\">\n",
      "     简体中文\n",
      "    </a>\n",
      "    <a onclick=\"international('zh_TW');\">\n",
      "     繁体中文\n",
      "    </a>\n",
      "    <a onclick=\"international('en_US');\">\n",
      "     English\n",
      "    </a>\n",
      "   </div>\n",
      "   <table border=\"0\" class=\"loginKuang\">\n",
      "    <tr>\n",
      "     <td class=\"lc1\">\n",
      "      银联商务通行证\n",
      "     </td>\n",
      "    </tr>\n",
      "    <tr>\n",
      "     <td class=\"lc2\">\n",
      "      一个账号可以跨多个系统登录\n",
      "     </td>\n",
      "    </tr>\n",
      "    <tr>\n",
      "     <td style=\"text-align: center;height: 70px;\">\n",
      "      <div id=\"dl1\" onclick=\"openLogin();\">\n",
      "       登      录\n",
      "      </div>\n",
      "     </td>\n",
      "    </tr>\n",
      "    <tr>\n",
      "     <td style=\"text-align: center;height: 70px;\">\n",
      "      <div id=\"jh1\" onclick=\"toUrl('activationStart');\">\n",
      "       激      活\n",
      "      </div>\n",
      "     </td>\n",
      "    </tr>\n",
      "   </table>\n",
      "   <div class=\"bottomCeng\">\n",
      "    <center>\n",
      "     <div class=\"loginBottom2\">\n",
      "      <center>\n",
      "       <table>\n",
      "        <tr>\n",
      "         <td>\n",
      "          <a onclick=\"window.open('http://www.chinaums.com/Channel/1262731')\">\n",
      "           支付承诺\n",
      "          </a>\n",
      "         </td>\n",
      "         <td>\n",
      "          |\n",
      "         </td>\n",
      "         <td>\n",
      "          <a onclick=\"window.open('http://www.chinaums.com/Channel/1262639')\">\n",
      "           使用条款\n",
      "          </a>\n",
      "         </td>\n",
      "         <td>\n",
      "          |\n",
      "         </td>\n",
      "         <td>\n",
      "          <a onclick=\"toUrl('/uis/uisWebLogin/toFAQ?tab=faq');\">\n",
      "           常见问题\n",
      "          </a>\n",
      "         </td>\n",
      "         <td>\n",
      "          |\n",
      "         </td>\n",
      "         <td>\n",
      "          <a onclick=\"window.open('http://www.chinaums.com/Channel/1266668')\">\n",
      "           加入银商\n",
      "          </a>\n",
      "         </td>\n",
      "         <td>\n",
      "          |\n",
      "         </td>\n",
      "         <td>\n",
      "          <a onclick=\"window.open('http://www.chinaums.com/Channel/1245344')\">\n",
      "           关于我们\n",
      "          </a>\n",
      "         </td>\n",
      "         <td>\n",
      "          |\n",
      "         </td>\n",
      "         <td>\n",
      "          <a onclick=\"window.open('http://www.chinaums.com/Channel/1263011')\">\n",
      "           合作伙伴\n",
      "          </a>\n",
      "         </td>\n",
      "        </tr>\n",
      "       </table>\n",
      "      </center>\n",
      "     </div>\n",
      "     <div class=\"loginBottom3\">\n",
      "      <center>\n",
      "       <span>\n",
      "        银联商务\n",
      "       </span>\n",
      "       <span>\n",
      "        版权所有 沪ICP备05003469\n",
      "       </span>\n",
      "       <span>\n",
      "        地址：上海浦东新区张衡路1006号\n",
      "       </span>\n",
      "       <span>\n",
      "        邮编：201203\n",
      "       </span>\n",
      "      </center>\n",
      "     </div>\n",
      "    </center>\n",
      "   </div>\n",
      "  </form>\n",
      "  <table align=\"center\" class=\"yindaoMaskTb\">\n",
      "   <tr>\n",
      "    <td class=\"op\" id=\"ydt_0_0\" valign=\"top\">\n",
      "     <div id=\"ydt_0_0Div\">\n",
      "      <a style=\"width: 1px;display: block;\">\n",
      "      </a>\n",
      "     </div>\n",
      "    </td>\n",
      "    <td class=\"op\" id=\"ydt_0_1\" valign=\"top\">\n",
      "     <div id=\"ydt_0_1Div\">\n",
      "      <a style=\"width: 1px;display: block;\">\n",
      "      </a>\n",
      "     </div>\n",
      "    </td>\n",
      "    <td class=\"op\" id=\"ydt_0_2\" valign=\"top\">\n",
      "     <div id=\"ydt_0_2Div\">\n",
      "      <a style=\"width: 1px;display: block;\">\n",
      "      </a>\n",
      "     </div>\n",
      "    </td>\n",
      "   </tr>\n",
      "   <tr>\n",
      "    <td class=\"op\" id=\"ydt_1_0\" valign=\"top\">\n",
      "     <div id=\"ydt_1_0Div\">\n",
      "      <a style=\"width: 1px;display: block;\">\n",
      "      </a>\n",
      "     </div>\n",
      "    </td>\n",
      "    <td class=\"op\" id=\"ydt_1_1\" valign=\"top\">\n",
      "     <div id=\"ydt_1_1Div\">\n",
      "      <a style=\"width: 1px;display: block;\">\n",
      "      </a>\n",
      "     </div>\n",
      "    </td>\n",
      "    <td class=\"op\" id=\"ydt_1_2\" valign=\"top\">\n",
      "     <div id=\"ydt_1_2Div\">\n",
      "      <a style=\"width: 1px;display: block;\">\n",
      "      </a>\n",
      "     </div>\n",
      "    </td>\n",
      "   </tr>\n",
      "   <tr>\n",
      "    <td class=\"op\" id=\"ydt_2_0\" valign=\"top\">\n",
      "     <div id=\"ydt_2_0Div\">\n",
      "      <a style=\"width: 1px;display: block;\">\n",
      "      </a>\n",
      "     </div>\n",
      "    </td>\n",
      "    <td class=\"op\" id=\"ydt_2_1\" valign=\"top\">\n",
      "     <div id=\"ydt_2_1Div\">\n",
      "      <a style=\"width: 1px;display: block;\">\n",
      "      </a>\n",
      "     </div>\n",
      "    </td>\n",
      "    <td class=\"op\" id=\"ydt_2_2\" valign=\"top\">\n",
      "     <div id=\"ydt_2_2Div\">\n",
      "      <a style=\"width: 1px;display: block;\">\n",
      "      </a>\n",
      "     </div>\n",
      "    </td>\n",
      "   </tr>\n",
      "  </table>\n",
      "  <div class=\"yindaoMask\">\n",
      "  </div>\n",
      "  <div class=\"yindao yindaoParent\" id=\"yindao1_1\">\n",
      "   <center>\n",
      "    <table border=\"0\" width=\"98%\">\n",
      "     <tr>\n",
      "      <td align=\"right\" style=\"padding: 5px 5px 0px 5px;\">\n",
      "       <a onclick=\"closeYMark();\" style=\"color: #CDCDCD; font-size: 18px;\" title=\"关闭\">\n",
      "        X\n",
      "       </a>\n",
      "      </td>\n",
      "     </tr>\n",
      "     <tr>\n",
      "      <td style=\"padding: 0px 20px 0px 20px; line-height: 18px;\">\n",
      "       <font style=\"font-size: 14px; font-family: '微软雅黑';\">\n",
      "        亲~网上服务系统2.0正式上线啦！为了确保您能正常使用本系统、也为了我们能够更好的为您提供服务，请您进行账号激活，谢谢！\n",
      "       </font>\n",
      "      </td>\n",
      "     </tr>\n",
      "     <tr>\n",
      "      <td align=\"center\" style=\"padding-top: 10px;\">\n",
      "       <div class=\"ynButton\" onclick=\"closeYMark();\">\n",
      "        我知道了\n",
      "       </div>\n",
      "      </td>\n",
      "     </tr>\n",
      "    </table>\n",
      "   </center>\n",
      "  </div>\n",
      "  <div class=\"yindao yindaoSon\" id=\"yindao1_2\">\n",
      "   <img src=\"/uis/css/img/tempydJH.jpg\"/>\n",
      "  </div>\n",
      "  <div class=\"toWsad\" id=\"yindao_toRight\">\n",
      "   <img src=\"/uis/css/img/toRight.png\"/>\n",
      "  </div>\n",
      "  <div id=\"lgmk2\">\n",
      "  </div>\n",
      "  <div id=\"lgkuang2\">\n",
      "   <center>\n",
      "    <div id=\"mdiv\">\n",
      "    </div>\n",
      "   </center>\n",
      "  </div>\n",
      "  <div id=\"lgct\">\n",
      "   <center>\n",
      "    <table id=\"lgTable\">\n",
      "     <tbody id=\"show1\">\n",
      "      <tr>\n",
      "       <td id=\"lgChange\">\n",
      "        <img onclick=\"lc(1);\" src=\"/uis/css/img/login/lgChange.png\"/>\n",
      "       </td>\n",
      "      </tr>\n",
      "      <tr>\n",
      "       <td id=\"lgtitle\">\n",
      "        用户登录\n",
      "       </td>\n",
      "      </tr>\n",
      "      <tr>\n",
      "       <td height=\"15\">\n",
      "        <table id=\"lgError\">\n",
      "         <tr>\n",
      "          <td style=\"text-align: right;width: 30px;\">\n",
      "           <img src=\"/uis/css/img/lgt.png\"/>\n",
      "          </td>\n",
      "          <td>\n",
      "          </td>\n",
      "         </tr>\n",
      "        </table>\n",
      "       </td>\n",
      "      </tr>\n",
      "      <tr>\n",
      "       <td height=\"60\">\n",
      "        <div id=\"lgtb\">\n",
      "         <input id=\"userAcntn\" style=\"width: 190px;\"/>\n",
      "        </div>\n",
      "       </td>\n",
      "      </tr>\n",
      "      <tr>\n",
      "       <td height=\"60\">\n",
      "        <div id=\"pwtb\">\n",
      "         <input id=\"userPwdn\" style=\"width: 190px;\" type=\"password\"/>\n",
      "        </div>\n",
      "        <div id=\"captchaLoginForm\">\n",
      "        </div>\n",
      "       </td>\n",
      "      </tr>\n",
      "      <tr>\n",
      "       <td height=\"70\">\n",
      "        <table id=\"lgbtn\">\n",
      "         <tr>\n",
      "          <td>\n",
      "           登      录\n",
      "          </td>\n",
      "         </tr>\n",
      "        </table>\n",
      "       </td>\n",
      "      </tr>\n",
      "      <tr>\n",
      "       <td>\n",
      "        <div id=\"A\" style=\"margin-right:30px\">\n",
      "         <a href=\"/uis/restUserPwd/forgetPwd\" id=\"A\">\n",
      "          忘记密码\n",
      "         </a>\n",
      "        </div>\n",
      "       </td>\n",
      "      </tr>\n",
      "      <tr>\n",
      "       <td>\n",
      "       </td>\n",
      "      </tr>\n",
      "     </tbody>\n",
      "     <tbody id=\"show2\">\n",
      "      <tr>\n",
      "       <td id=\"lgChange2\">\n",
      "        <img onclick=\"lc(2);\" src=\"/uis/css/img/login/lgChange2.png\"/>\n",
      "       </td>\n",
      "      </tr>\n",
      "      <tr>\n",
      "       <td id=\"lgtitle2\">\n",
      "        扫码下载\n",
      "       </td>\n",
      "      </tr>\n",
      "      <tr id=\"saoma\">\n",
      "       <td>\n",
      "        <img src=\"/uis/css/img/login/appDown.png\"/>\n",
      "       </td>\n",
      "      </tr>\n",
      "     </tbody>\n",
      "    </table>\n",
      "   </center>\n",
      "  </div>\n",
      "  <a id=\"xlgct\" onclick=\"closeLogin();\">\n",
      "   x\n",
      "  </a>\n",
      " </body>\n",
      " <link href=\"/uis/css/loading.css\" rel=\"stylesheet\" type=\"text/css\"/>\n",
      " <!-- 是否忽略特殊标签:否 -->\n",
      " <!-- 忽略缓存 -->\n",
      " <head>\n",
      "  <meta contect=\"no-cache\" http-equiv=\"Pragma\"/>\n",
      " </head>\n",
      " <div class=\"loadingDiv\">\n",
      " </div>\n",
      " <table class=\"loadingImg\">\n",
      "  <tr>\n",
      "   <td align=\"center\" valign=\"middle\">\n",
      "    <div class=\"loading-3\" style=\"width: 100px;\">\n",
      "     <i>\n",
      "     </i>\n",
      "     <i>\n",
      "     </i>\n",
      "     <i>\n",
      "     </i>\n",
      "     <i>\n",
      "     </i>\n",
      "     <i>\n",
      "     </i>\n",
      "     <i>\n",
      "     </i>\n",
      "     <i>\n",
      "     </i>\n",
      "     <i>\n",
      "     </i>\n",
      "    </div>\n",
      "    <img id=\"old\" src=\"/uis/css/img/icon/loading3.gif\" style=\"display: none;\" width=\"30\"/>\n",
      "    Loading . . . . . .\n",
      "   </td>\n",
      "  </tr>\n",
      " </table>\n",
      " <div class=\"maskCss\">\n",
      " </div>\n",
      " <div class=\"maskCss2\">\n",
      " </div>\n",
      " <div class=\"alertCeng\">\n",
      "  <div class=\"blueTitle\">\n",
      "   <div class=\"blueTitleDiv\" id=\"alertTitle\">\n",
      "    温馨提示\n",
      "   </div>\n",
      "   <div class=\"blueTitleDiv textAlignrRight\">\n",
      "    <a id=\"ax\" onclick=\"if(aFunObj!=undefined)aFunObj();closeAlert();\" title=\"关 闭\">\n",
      "     X\n",
      "    </a>\n",
      "   </div>\n",
      "  </div>\n",
      "  <table align=\"center\">\n",
      "   <tr>\n",
      "    <td width=\"70\">\n",
      "     <img src=\"/uis/css/img/tishi1.png\" width=\"90\"/>\n",
      "    </td>\n",
      "    <td>\n",
      "     <div id=\"alertContent\" style=\"overflow-Y: auto;line-height: 16px;\">\n",
      "      温馨提示\n",
      "     </div>\n",
      "    </td>\n",
      "   </tr>\n",
      "   <tr>\n",
      "    <td align=\"center\" colspan=\"2\">\n",
      "     <hr class=\"hrStyle\"/>\n",
      "     <input class=\"blueButton margin10\" onclick=\"if(aFunObj!=undefined)aFunObj();closeAlert();\" type=\"button\" value=\"确 定 \"/>\n",
      "    </td>\n",
      "   </tr>\n",
      "  </table>\n",
      " </div>\n",
      " <div class=\"confirmCeng\">\n",
      "  <div class=\"blueTitle\">\n",
      "   <div class=\"blueTitleDiv\" id=\"confirmTitle\">\n",
      "    温馨提示\n",
      "   </div>\n",
      "   <div class=\"blueTitleDiv textAlignrRight\">\n",
      "    <a onclick=\"closeConfirm();\" title=\"关 闭\">\n",
      "     X\n",
      "    </a>\n",
      "   </div>\n",
      "  </div>\n",
      "  <table align=\"center\">\n",
      "   <tr>\n",
      "    <td width=\"70\">\n",
      "     <img src=\"/uis/css/img/tishi1.png\" width=\"90\"/>\n",
      "    </td>\n",
      "    <td id=\"confirmContent\" style=\"height: 100px;width: 380px;\">\n",
      "     温馨提示\n",
      "    </td>\n",
      "   </tr>\n",
      "   <tr>\n",
      "    <td align=\"center\" colspan=\"2\">\n",
      "     <hr class=\"hrStyle\"/>\n",
      "     <input class=\"blueButton margin10\" id=\"cmok\" onclick=\"doConfirmFun();if(autoClose!=1)closeConfirm();\" type=\"button\" value=\"确 定 \"/>\n",
      "     <input class=\"redButton2 margin10\" id=\"cmno\" onclick=\"doClConfirmFun();closeConfirm();\" type=\"button\" value=\"取 消 \"/>\n",
      "    </td>\n",
      "   </tr>\n",
      "  </table>\n",
      " </div>\n",
      " <div class=\"openIframe\">\n",
      "  <iframe border=\"0\" class=\"ifr\" frameborder=\"0\" id=\"oifr\" src=\"\">\n",
      "  </iframe>\n",
      " </div>\n",
      " <div class=\"maskIfrDiv\" id=\"maskIfrDiv\">\n",
      "  <table>\n",
      "   <tr class=\"cursorMove\" id=\"maskIfrTitleTr\">\n",
      "    <td align=\"left\" id=\"maskIfrTitle\">\n",
      "     注册用户\n",
      "    </td>\n",
      "    <td>\n",
      "    </td>\n",
      "    <td align=\"right\">\n",
      "     <a onclick=\"closeCeng();\" title=\"关 闭\">\n",
      "      X\n",
      "     </a>\n",
      "    </td>\n",
      "   </tr>\n",
      "  </table>\n",
      "  <iframe border=\"0\" frameborder=\"0\" id=\"maskIfr\" name=\"ifr\" src=\"\">\n",
      "  </iframe>\n",
      " </div>\n",
      " <script type=\"text/javascript\">\n",
      "  var posX;\r\n",
      "\t\tvar posY;       \r\n",
      "\t\tdocument.getElementById(\"maskIfrTitleTr\").onmousedown=function(e){\r\n",
      "\t\t\tthid = \"#maskIfrDiv\";\r\n",
      "\t\t    if(!e) e = window.event;  //IE\r\n",
      "\t\t    posX = e.clientX - parseInt($(thid).css(\"left\"));\r\n",
      "\t\t    posY = e.clientY - parseInt($(thid).css(\"top\"));\r\n",
      "\t\t    document.onmousemove = mousemove;           \r\n",
      "\t\t};\r\n",
      "\t\tdocument.onmouseup = function(){document.onmousemove = null;};\r\n",
      "\t\tfunction mousemove(ev){\r\n",
      "\t\t    if(ev==null) ev = window.event;//IE\r\n",
      "\t\t    x = (ev.clientX - posX) + \"px\";\r\n",
      "\t\t    y = (ev.clientY - posY) + \"px\";\r\n",
      "\t\t    $(thid).css(\"left\",x);\r\n",
      "\t\t    $(thid).css(\"top\",y);\r\n",
      "\t\t}\r\n",
      "\t\tvar aFunObj;\r\n",
      "\t\tvar autoClose;\r\n",
      "\t\tvar resUserStatus = 0;\r\n",
      "\t\tvar dn = \"\";\r\n",
      "\t\tvar pogID = 0;\r\n",
      "\t\tvar sogList = [];\r\n",
      "\t\tvar sogList2 = [];\r\n",
      "\t\tvar sgpList = [];\r\n",
      "\t\tvar theOgID;\r\n",
      "\t\tvar theOgID2;\r\n",
      "\t\tvar theGpID;\r\n",
      "\t\t\r\n",
      "\t\tif(isIE()){\r\n",
      "\t\t\t$(\".loading-3\").hide();\r\n",
      "\t\t\t$(\"#old\").show();\r\n",
      "\t\t}\n",
      " </script>\n",
      " <!-- 加载弹出层(自定义alert、confirm等等) -->\n",
      " <style>\n",
      "  #lgtb {\r\n",
      "\t\t\twidth: 239px;\r\n",
      "\t\t\theight: 36px;\r\n",
      "\t\t\tmargin: auto;\r\n",
      "\t\t\tbackground-image: url(\"/uis/css/img/login/lgtb.png\");\r\n",
      "\t\t\tbackground-repeat: no-repeat;\r\n",
      "\t\t\ttext-align: right;\r\n",
      "\t\t}\r\n",
      "\t\t\r\n",
      "\t\t#pwtb {\r\n",
      "\t\t\twidth: 239px;\r\n",
      "\t\t\theight: 36px;\r\n",
      "\t\t\tmargin: auto;\r\n",
      "\t\t\tbackground-image: url(\"/uis/css/img/login/pwtb.png\");\r\n",
      "\t\t\tbackground-repeat: no-repeat;\r\n",
      "\t\t\ttext-align: right;\r\n",
      "\t\t}\r\n",
      "\t\t\r\n",
      "\t\t#yztb {\r\n",
      "\t\t\twidth: 119px;\r\n",
      "\t\t\theight: 36px;\r\n",
      "\t\t\tmargin-left: 27px;\r\n",
      "\t\t\tbackground-image: url(\"/uis/css/img/login/yztb.png\");\r\n",
      "\t\t\tbackground-repeat: no-repeat;\r\n",
      "\t\t\ttext-align: right;\r\n",
      "\t\t\tfloat: left;\r\n",
      "\t\t}\r\n",
      "\t\t\r\n",
      "\t\t#lgtb input,\r\n",
      "\t\t#pwtb input,\r\n",
      "\t\t#yztb input {\r\n",
      "\t\t\tfont-size: 16px;\r\n",
      "\t\t\tpadding: 2px;\r\n",
      "\t\t\tbackground: none;\r\n",
      "\t\t\tmargin-top: 7px;\r\n",
      "\t\t\tmargin-right: 7px;\r\n",
      "\t\t\tborder: 0px;\r\n",
      "\t\t}\r\n",
      "\t\t\r\n",
      "\t\t#dl1 {\r\n",
      "\t\t\ttext-align: center;\r\n",
      "\t\t\tcolor: #ffffff;\r\n",
      "\t\t\ttext-align: center;\r\n",
      "\t\t\tcursor: pointer;\r\n",
      "\t\t\tfont-weight: bold;\r\n",
      "\t\t\tfont-family: 微软雅黑;\r\n",
      "\t\t\tfont-size: 14px;\r\n",
      "\t\t\tbackground-image:url(\"/uis/css/img/dlbg.png\");\r\n",
      "\t\t\tbackground-repeat: no-repeat;\r\n",
      "\t\t\tpadding: 10px 10px 13px 10px;\r\n",
      "\t\t}\r\n",
      "\t\t\r\n",
      "\t\t#jh1 {\r\n",
      "\t\t\tfont-weight: bold;\r\n",
      "\t\t\tfont-family: 微软雅黑;\r\n",
      "\t\t\tcolor: #ffffff;\r\n",
      "\t\t\ttext-align: center;\r\n",
      "\t\t\tcursor: pointer;\r\n",
      "\t\t\tbackground-image:url(\"/uis/css/img/jhbg.png\");\r\n",
      "\t\t\tbackground-repeat: no-repeat;\r\n",
      "\t\t\tpadding: 10px 10px 13px 10px;\r\n",
      "\t\t\tfont-size: 14px;\r\n",
      "\t\t}\r\n",
      "\t\t\r\n",
      "\t\t#lgError {\r\n",
      "\t\t\tmargin:auto;\r\n",
      "\t\t\tdisplay: none;\r\n",
      "\t\t\tcolor: #9B9B9B;\r\n",
      "\t\t}\r\n",
      "\t\t\r\n",
      "\t\t#show2 {\r\n",
      "\t\t\tdisplay: none;\r\n",
      "\t\t}\r\n",
      "\t\t\r\n",
      "\t\t#lgChange2 {\r\n",
      "\t\t\ttext-align: right;\r\n",
      "\t\t\tvertical-align: top;\r\n",
      "\t\t\theight: 50px;\r\n",
      "\t\t\tcursor: pointer;\r\n",
      "\t\t}\r\n",
      "\t\t\r\n",
      "\t\t#lgtitle2 {\r\n",
      "\t\t\tfont-weight: bold;\r\n",
      "\t\t\tfont-family: 微软雅黑;\r\n",
      "\t\t\tfont-size: 20px;\r\n",
      "\t\t\tcolor: #ffffff;\r\n",
      "\t\t\theight: 24px;\r\n",
      "\t\t\ttext-align: center;\r\n",
      "\t\t}\r\n",
      "\t\t\r\n",
      "\t\t#saoma {\r\n",
      "\t\t\tvertical-align: top;\r\n",
      "\t\t\ttext-align: center;\r\n",
      "\t\t}\r\n",
      "\t\t\r\n",
      "\t\t#saoma img {\r\n",
      "\t\t\tmargin-top: 50px;\r\n",
      "\t\t\theight: 120px;\r\n",
      "\t\t\twidth: 120px\r\n",
      "\t\t}\r\n",
      "\t\t\r\n",
      "\t\t#lgmk2 {\r\n",
      "\t\t\tposition: absolute;\r\n",
      "\t\t\tz-index: 8500;\r\n",
      "\t\t\tfilter: alpha(opacity=85);\r\n",
      "\t\t\tbackground: #666;\r\n",
      "\t\t\topacity: 0.65;\r\n",
      "\t\t\t-moz-opacity: 0.65;\r\n",
      "\t\t\tleft: 0;\r\n",
      "\t\t\ttop: 0;\r\n",
      "\t\t\theight: 100%;\r\n",
      "\t\t\twidth: 100%;\r\n",
      "\t\t\tdisplay: none;\r\n",
      "\t\t}\r\n",
      "\t\t\r\n",
      "\t\t#lgkuang2 {\r\n",
      "\t\t\tposition: absolute;\r\n",
      "\t\t\tz-index: 8600;\r\n",
      "\t\t\tfilter: alpha(opacity=30);\r\n",
      "\t\t\topacity: 0.3;\r\n",
      "\t\t\t-moz-opacity: 0.3;\r\n",
      "\t\t\tleft: 0;\r\n",
      "\t\t\ttop: 0;\r\n",
      "\t\t\theight: 100%;\r\n",
      "\t\t\twidth: 100%;\r\n",
      "\t\t\tdisplay: none;\r\n",
      "\t\t\tbackground: none;\r\n",
      "\t\t}\r\n",
      "\t\t\r\n",
      "\t\t#lgkuang2 div {\r\n",
      "\t\t\twidth: 295px;\r\n",
      "\t\t\theight: 373px;\r\n",
      "\t\t\tbackground: #666;\r\n",
      "\t\t\tmargin-top: 103px;\r\n",
      "\t\t\tmargin-right: 35px;\r\n",
      "\t\t\tbackground: #000000;\r\n",
      "\t\t}\r\n",
      "\t\t\r\n",
      "\t\t#lgChange,\r\n",
      "\t\t#lgChange2 {\r\n",
      "\t\t\tcursor: default;\r\n",
      "\t\t}\r\n",
      "\t\t\r\n",
      "\t\t#lgChange img,\r\n",
      "\t\t#lgChange2 img {\r\n",
      "\t\t\tcursor: pointer;\r\n",
      "\t\t}\r\n",
      "\t\t\r\n",
      "\t\t#lgbtn {\r\n",
      "\t\t\tmargin:auto;\r\n",
      "\t\t\t-moz-border-radius: 3px;\r\n",
      "\t\t\t/* Gecko browsers */\r\n",
      "\t\t\t-webkit-border-radius: 3px;\r\n",
      "\t\t\t/* Webkit browsers */\r\n",
      "\t\t\tborder-radius: 3px;\r\n",
      "\t\t}\r\n",
      "\t\t\r\n",
      "\t\t#selectLanguage {\r\n",
      "\t\t\tcolor: #6C6C6C;\r\n",
      "\t\t\tmargin-left: 10px;\r\n",
      "\t\t\tcursor: pointer;\r\n",
      "\t\t\tbackground-image: url(\"/uis/css/img/language.png\");\r\n",
      "\t\t\tbackground-repeat: no-repeat;\r\n",
      "\t\t\tpadding-left: 20px;\r\n",
      "\t\t}\r\n",
      "\t\t\r\n",
      "\t\t#selectLanguage font {\r\n",
      "\t\t\ttext-decoration: underline;\r\n",
      "\t\t\tfont-size: 12px;\r\n",
      "\t\t}\r\n",
      "\t\t\r\n",
      "\t\t#languageDiv {\r\n",
      "\t\t\tposition: absolute;\r\n",
      "\t\t\twidth: 95px;\r\n",
      "\t\t\theight: 77px;\r\n",
      "\t\t\tbackground: #ffffff;\r\n",
      "\t\t\tright: 230px;\r\n",
      "\t\t\ttop: 70px;\r\n",
      "\t\t\tz-index: 99999999999999999;\r\n",
      "\t\t\tbox-shadow: 0 1px 7px 0 #CCCCCC;\r\n",
      "\t\t\t-webkit-box-shadow: 0 1px 7px 0 #CCCCCC;\r\n",
      "\t\t\t-moz-box-shadow: 0 1px 7px 0 #CCCCCC;\r\n",
      "\t\t\tborder-top: 1px solid #c1c1c1;\r\n",
      "\t\t\tdisplay: none;\r\n",
      "\t\t}\r\n",
      "\t\t\r\n",
      "\t\t#languageDiv img {\r\n",
      "\t\t\tposition: absolute;\r\n",
      "\t\t\ttop: -7px;\r\n",
      "\t\t}\r\n",
      "\t\t\r\n",
      "\t\t#languageDiv a {\r\n",
      "\t\t\ttext-align: center;\r\n",
      "\t\t\tcursor: pointer;\r\n",
      "\t\t\tdisplay: block;\r\n",
      "\t\t}\r\n",
      "\t\t\r\n",
      "\t\t#mdiv,\r\n",
      "\t\t#lgChange img,\r\n",
      "\t\t#lgChange2 img,\r\n",
      "\t\t#saoma img,\r\n",
      "\t\t#validateCodeImg {\r\n",
      "\t\t\t-moz-border-radius: 4px;\r\n",
      "\t\t\t/* Gecko browsers */\r\n",
      "\t\t\t-webkit-border-radius: 4px;\r\n",
      "\t\t\t/* Webkit browsers */\r\n",
      "\t\t\tborder-radius: 4px;\r\n",
      "\t\t}\r\n",
      "\t\t\r\n",
      "\t\t#A {\r\n",
      "\t\t\tcolor: #FFF;\r\n",
      "\t\t\ttext-align: right;\r\n",
      "\t\t\t/* \ttext-align:left; */\r\n",
      "\t\t}\r\n",
      "\t\t\r\n",
      "\t\t.gt_popup,.popup,.gt_popup_wrap{\r\n",
      "\t\t\tz-index: 999999;\r\n",
      "\t\t}\n",
      " </style>\n",
      "</html>\n"
     ]
    }
   ],
   "source": [
    "soup = BeautifulSoup(html, 'html.parser')\n",
    "print(soup.prettify())\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 20,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": [
    "from selenium import webdriver"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 21,
   "metadata": {},
   "outputs": [
    {
     "ename": "WebDriverException",
     "evalue": "Message: 'phantomjs.exe' executable needs to be in PATH. \n",
     "output_type": "error",
     "traceback": [
      "\u001b[1;31m---------------------------------------------------------------------------\u001b[0m",
      "\u001b[1;31mFileNotFoundError\u001b[0m                         Traceback (most recent call last)",
      "\u001b[1;32mD:\\Python\\Anaconda3\\envs\\tensorflow\\lib\\site-packages\\selenium\\webdriver\\common\\service.py\u001b[0m in \u001b[0;36mstart\u001b[1;34m(self)\u001b[0m\n\u001b[0;32m     73\u001b[0m                                             \u001b[0mclose_fds\u001b[0m\u001b[1;33m=\u001b[0m\u001b[0mplatform\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0msystem\u001b[0m\u001b[1;33m(\u001b[0m\u001b[1;33m)\u001b[0m \u001b[1;33m!=\u001b[0m \u001b[1;34m'Windows'\u001b[0m\u001b[1;33m,\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m---> 74\u001b[1;33m                                             stdout=self.log_file, stderr=self.log_file)\n\u001b[0m\u001b[0;32m     75\u001b[0m         \u001b[1;32mexcept\u001b[0m \u001b[0mTypeError\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n",
      "\u001b[1;32mD:\\Python\\Anaconda3\\envs\\tensorflow\\lib\\subprocess.py\u001b[0m in \u001b[0;36m__init__\u001b[1;34m(self, args, bufsize, executable, stdin, stdout, stderr, preexec_fn, close_fds, shell, cwd, env, universal_newlines, startupinfo, creationflags, restore_signals, start_new_session, pass_fds)\u001b[0m\n\u001b[0;32m    675\u001b[0m                                 \u001b[0merrread\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0merrwrite\u001b[0m\u001b[1;33m,\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m--> 676\u001b[1;33m                                 restore_signals, start_new_session)\n\u001b[0m\u001b[0;32m    677\u001b[0m         \u001b[1;32mexcept\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n",
      "\u001b[1;32mD:\\Python\\Anaconda3\\envs\\tensorflow\\lib\\subprocess.py\u001b[0m in \u001b[0;36m_execute_child\u001b[1;34m(self, args, executable, preexec_fn, close_fds, pass_fds, cwd, env, startupinfo, creationflags, shell, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite, unused_restore_signals, unused_start_new_session)\u001b[0m\n\u001b[0;32m    954\u001b[0m                                          \u001b[0mcwd\u001b[0m\u001b[1;33m,\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m--> 955\u001b[1;33m                                          startupinfo)\n\u001b[0m\u001b[0;32m    956\u001b[0m             \u001b[1;32mfinally\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n",
      "\u001b[1;31mFileNotFoundError\u001b[0m: [WinError 2] 系统找不到指定的文件。",
      "\nDuring handling of the above exception, another exception occurred:\n",
      "\u001b[1;31mWebDriverException\u001b[0m                        Traceback (most recent call last)",
      "\u001b[1;32m<ipython-input-21-516b4d663adf>\u001b[0m in \u001b[0;36m<module>\u001b[1;34m()\u001b[0m\n\u001b[1;32m----> 1\u001b[1;33m \u001b[0mdriver\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0mwebdriver\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mPhantomJS\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mexecutable_path\u001b[0m\u001b[1;33m=\u001b[0m\u001b[1;34m\"phantomjs.exe\"\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m",
      "\u001b[1;32mD:\\Python\\Anaconda3\\envs\\tensorflow\\lib\\site-packages\\selenium\\webdriver\\phantomjs\\webdriver.py\u001b[0m in \u001b[0;36m__init__\u001b[1;34m(self, executable_path, port, desired_capabilities, service_args, service_log_path)\u001b[0m\n\u001b[0;32m     50\u001b[0m             \u001b[0mservice_args\u001b[0m\u001b[1;33m=\u001b[0m\u001b[0mservice_args\u001b[0m\u001b[1;33m,\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m     51\u001b[0m             log_path=service_log_path)\n\u001b[1;32m---> 52\u001b[1;33m         \u001b[0mself\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mservice\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mstart\u001b[0m\u001b[1;33m(\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m\u001b[0;32m     53\u001b[0m \u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m     54\u001b[0m         \u001b[1;32mtry\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n",
      "\u001b[1;32mD:\\Python\\Anaconda3\\envs\\tensorflow\\lib\\site-packages\\selenium\\webdriver\\common\\service.py\u001b[0m in \u001b[0;36mstart\u001b[1;34m(self)\u001b[0m\n\u001b[0;32m     79\u001b[0m                 raise WebDriverException(\n\u001b[0;32m     80\u001b[0m                     \"'%s' executable needs to be in PATH. %s\" % (\n\u001b[1;32m---> 81\u001b[1;33m                         os.path.basename(self.path), self.start_error_message)\n\u001b[0m\u001b[0;32m     82\u001b[0m                 )\n\u001b[0;32m     83\u001b[0m             \u001b[1;32melif\u001b[0m \u001b[0merr\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0merrno\u001b[0m \u001b[1;33m==\u001b[0m \u001b[0merrno\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mEACCES\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n",
      "\u001b[1;31mWebDriverException\u001b[0m: Message: 'phantomjs.exe' executable needs to be in PATH. \n"
     ]
    }
   ],
   "source": [
    "driver = webdriver.PhantomJS(executable_path=\"phantomjs.exe\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.5.3"
  },
  "toc": {
   "nav_menu": {},
   "number_sections": true,
   "sideBar": true,
   "skip_h1_title": false,
   "toc_cell": false,
   "toc_position": {},
   "toc_section_display": "block",
   "toc_window_display": false
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
